package tutorials.io;

import java.io.BufferedOutputStream;
import java.io.BufferedWriter;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.File;
import java.io.OutputStream;

public class CreateTempFile {

    public static void main(String[] args) throws IOException {
    	File sodafile = File.createTempFile("jtf", "soda", new File("asd"));
    	
    	BufferedOutputStream br = new BufferedOutputStream(new FileOutputStream(sodafile));
    	
    	br.write(1);
    	br.close();

    }
}
